import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  // {   //登录访客系统
  //   path: '/loginVisitors',
  //   name: 'loginVisitors',
  //   component: () => import( '../views/loginVisitors.vue'),
  // },
  // { //访客系统首页
  //   path: '/Home',
  //   name: 'Home',
  //   component: () => import( '../views/Home.vue'),
  //   redirect:'/visitorDetails',
  //   children:[
  //     {path: '/visitorDataDisplay',name: 'visitorDataDisplay',component:  () => import('../views/visitorSystem/visitors/visitorDataDisplay.vue')},   //访客实时数据
  //     {path: '/visitorDataQuery',name: 'visitorDataQuery',component:  () => import('../views/visitorSystem/visitors/visitorDataQuery.vue')},   //访客数据查询
  //     {path: '/visitorDetails',name: 'visitorDetails',component:  () => import('../views/visitorSystem/visitors/visitorDetails.vue')},   //访客明细
  //     {path: '/visitorUnitCount',name: 'visitorUnitCount',component:  () => import('../views/visitorSystem/visitors/visitorUnitCount.vue')},   //访客单位访问统计
  //     {path: '/visitorPersonsCount',name: 'visitorPersonsCount',component:  () => import('../views/visitorSystem/visitors/visitorPersonsCount.vue')},   //访客单位人次统计
  //     {path: '/intervDeptCount',name: 'intervDeptCount',component:  () => import('../views/visitorSystem/visitors/intervDeptCount.vue')},   //被访者部门人次统计
  //     {path: '/carDetails',name: 'carDetails',component:  () => import('../views/visitorSystem/vehicle/carDetails.vue')},   //车辆明细
  //     {path: '/carDataShow',name: 'carDataShow',component:  () => import('../views/visitorSystem/vehicle/carDataShow.vue')},   //车辆实时数据
  //     {path: '/carDataQuery',name: 'carDataQuery',component:  () => import('../views/visitorSystem/vehicle/carDataQuery.vue')},   //车辆数据查询
  //     {path: '/carParkManage',name: 'carParkManage',component:  () => import('../views/visitorSystem/vehicle/carParkManage.vue')},   //停车位远程管理
  //     {path: '/purviewGroupDef',name: 'purviewGroupDef',component:  () => import('../views/visitorSystem/purviewManage/purviewGroupDef.vue')},   //权限组定义
  //     {path: '/adminDefinition',name: 'adminDefinition',component:  () => import('../views/visitorSystem/purviewManage/adminDefinition.vue')},   //管理员定义
  //     {path: '/placeDefinition',name: 'placeDefinition',component:  () => import('../views/visitorSystem/deviceManage/placeDefinition.vue')},   //场所定义
  //     {path: '/deviceDefinition',name: 'deviceDefinition',component:  () => import('../views/visitorSystem/deviceManage/deviceDefinition.vue')},   //设备定义
  //     {path: '/departDef',name: 'departDef',component:  () => import('../views/visitorSystem/humanFile/departDef.vue')},   //部门定义
  //     {path: '/personnelFile',name: 'personnelFile',component:  () => import('../views/visitorSystem/humanFile/personnelFile.vue')},   //人员档案
  //     {path: '/systemDefinition',name: 'systemDefinition',component:  () => import('../views/visitorSystem/systemSite/systemDefinition.vue')},   //设备定义
  //     {path: '/logQuery',name: 'logQuery',component:  () => import('../views/visitorSystem/systemSite/logQuery.vue')},   //日志查询
  //     {path: '/menuManage',name: 'menuManage',component:  () => import('../views/visitorSystem/systemSite/menuManage.vue')},   //菜单管理
  //   ]
  // },
  // {   //登录门禁系统
  //   path: '/',
  //   name: 'loginAccessControl',
  //   component: () => import( '../views/loginAccessControl.vue'),
  // },
  // {   //门禁系统首页
  //   path: '/homeAccessControl',
  //   name: 'homeAccessControl',
  //   component: () => import( '../views/homeAccessControl.vue'),
  //   redirect:'/abnormalReports',
  //   children:[
  //     {path: '/homeSummary',name: 'homeSummary',component:  () => import('../views/accessControlSystem/homeSummary.vue')},     //门禁首页
  //     {path: '/abnormalReports',name: 'abnormalReports',component:  () => import('../views/accessControlSystem/abnormalReports.vue')},     //异常报表
  //     {path: '/accessByUser',name: 'accessByUser',component:  () => import('../views/accessControlSystem/authorizeManage/accessByUser.vue')},     //按人授权
  //     {path: '/accessByDoor',name: 'accessByDoor',component:  () => import('../views/accessControlSystem/authorizeManage/accessByDoor.vue')},     //按门授权
  //     {path: '/queryByDoor',name: 'queryByDoor',component:  () => import('../views/accessControlSystem/reportQuery/queryByDoor.vue')},          //按门查询进出记录
  //     {path: '/queryByPeople',name: 'queryByPeople',component:  () => import('../views/accessControlSystem/reportQuery/queryByPeople.vue')},     //按人查询进出记录
  //     {path: '/queryByDevice',name: 'queryByDevice',component:  () => import('../views/accessControlSystem/reportQuery/queryByDevice.vue')},     //按设备查询进出记录
  //     {path: '/queryByEquiStatus',name: 'queryByEquiStatus',component:  () => import('../views/accessControlSystem/reportQuery/queryByEquiStatus.vue')},     //设备状态记录查询
  //     {path: '/queryByOutsider',name: 'queryByOutsider',component:  () => import('../views/accessControlSystem/reportQuery/queryByOutsider.vue')},     //外来人员进出记录
  //     {path: '/lightFaceManage',name: 'lightFaceManage',component:  () => import('../views/accessControlSystem/faceManage/lightFaceManage.vue')},     //可见光人脸管理
  //     {path: '/placesDefinition',name: 'placesDefinition',component:  () => import('../views/accessControlSystem/deviceManage/placesDefinition.vue')},     //场所定义
  //     {path: '/devicesDefinition',name: 'devicesDefinition',component:  () => import('../views/accessControlSystem/deviceManage/devicesDefinition.vue')},     //设备定义
  //     {path: '/doorDefinition',name: 'doorDefinition',component:  () => import('../views/accessControlSystem/basicData/doorDefinition.vue')},     //门定义
  //     {path: '/channelDefinition',name: 'channelDefinition',component:  () => import('../views/accessControlSystem/basicData/channelDefinition.vue')},     //通道定义
  //     {path: '/timeRule',name: 'timeRule',component:  () => import('../views/accessControlSystem/basicData/timeRule.vue')},     //时段规则
  //     {path: '/peopleFile',name: 'peopleFile',component:  () => import('../views/accessControlSystem/personnelFile/peopleFile.vue')},     //人员档案
  //     {path: '/deptDefinition',name: 'deptDefinition',component:  () => import('../views/accessControlSystem/personnelFile/deptDefinition.vue')},     //部门定义
  //     {path: '/resignManage',name: 'resignManage',component:  () => import('../views/accessControlSystem/personnelFile/resignManage.vue')},     //离职管理
  //
  //   ]
  // },
  {   //异常数据
    path: '/abnormalReports',
    name: 'abnormalReports',
    component:  () => import('../views/exception/abnormalReports.vue')
  },
  {   //考勤数据明细
    path: '/attendDetail',
    name: 'attendDetail',
    component:  () => import('../views/exception/attendanceDetail')
  }

]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
